package com.zyl.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Configuration
public class ImagesUploadConfig implements WebMvcConfigurer {


    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("http://localhost:8084/article/image/**").addResourceLocations("file:C:\\Vue\\blogSpringboot\\src\\main\\resources\\static\\article\\image\\");
    }
}